<template>
	<view class="steps-container">
		<view class="step" v-for="(item,index) in menuDetail.method" :key="item.describe">
			<view class="step-title">
				步骤 {{index + 1}}
			</view>
			<image :src="item.img"
				mode=""></image>
			<text class="step-desc">
				{{item.describe}}
			</text>
		</view>
		
		<view class="tips-container" v-if="menuDetail.tips">
			<view class="tip-title">
				小贴士
			</view>
			<view class="tip" v-for="item in menuDetail.tips" :key="item.tipname">
				<text v-if="item.tipname"> {{item.tipname}}: </text>{{item.tipdescribe[0]}}
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		name: "menu-steps",
		props:{
				menuDetail:{
					type:Object
				}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss"
	scoped>
	.steps-container {
		width: 750rpx;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		align-items: center;
		box-sizing: border-box;
		padding: 0 32rpx;
		padding-bottom: 36rpx;
		

		.step {
			display: flex;
			flex-direction: column;
			align-items: center;
			width: 100%;
			margin-bottom: 48rpx;

			.step-title {
				width: 100%;
				font-size: 30rpx;
				font-weight: bold;
				color: #303030;
				padding-bottom: 26rpx;
			}

			image {
				width: 688rpx;
				height: 460rpx;
				border-radius: 8rpx;
				margin-bottom: 34rpx;
			}
			
			.step-desc{
				width: 100%;
				text-align: left;
				font-size: 28rpx;
				color: #888888;
			}
		}

.tips-container{
	width: 688rpx;
		// height: 334rpx;
		margin: 0 auto;
		background-color: #eaeaea;
		border-radius: 8rpx;
		padding: 40rpx;
		box-sizing: border-box;
		.tip-title{
			font-size: 28rpx;
			color: #2c2c2c;
			width: 100%;
			margin-bottom: 22rpx;
		}
		.tip{
			font-size: 26rpx;
			color: #686868;
			margin-bottom: 12rpx;
		}
}
	}
</style>
